FROM node:10.13.0-alpine as build

WORKDIR /app
COPY ./service /app/service
COPY ./config /app/config
WORKDIR /app/service
RUN npm install --only production

FROM node:10.13.0-alpine
WORKDIR /app/service
COPY --from=build /app /app